<!DOCTYPE html>
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="viewport" content="width=device-width,height=device-height,inital-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="format-detection" content="telephone=no">
	<title>${info.title}</title>
	<link href="${app}/static/jquery-weui/css/weui.min.css" rel="stylesheet" type="text/css" />
	<link href="${app}/static/jquery-weui/css/jquery-weui.min.css" rel="stylesheet" type="text/css" />
	<link href="${app}/static/weixin/vote/index${info.moban}/touch.css" rel="stylesheet" type="text/css" />
	<link href="${app}/static/weixin/vote/index1/common.css" rel="stylesheet" type="text/css" />
	<script type="text/javascript" src="${app }/static/easyui/jquery.min.js"></script>
	<script type="text/javascript" src="${app }/static/js/common.utils.js"></script>
	<script type="text/javascript" src="${app}/static/jquery-weui/jquery-weui.min.js"></script>
</head>
<body>
<div class="notice"><marquee style="width: 100%; height: 18px" scrollamount="6" align="Middle" hspace="0" direction="Left">尊敬的家长朋友：      您好!新年伊始，我们即将迎来一个充满希望的春天，孙庄幼儿园将和您一起健康成长，发芽开花，在秋天收获累累硕果。      “三岁看六七岁看老”农村的父母都知道这个理，可是真正执行的却不多，因为他们大多有这样一个想法法，也可以说是担心孩子太小不懂事，怕他们什么也不会，担心白费力。其实，研究表明0-6周岁是性格形成期，大脑的布网期，智力的开发期，这段时期培养的好将事半功倍。   办园宗旨：为了孩子的一切，为了一切的孩子  本园特色：           动感英语：让每个幼儿积极参与在游戏中轻松学英语            手指算数：训练幼儿左右脑协调发展的同时在实践中轻松速算100以内连加减混合算法            立体拼音：在有韵律的儿歌中学习拼音使拼音立体化   开设课堂：趣味英语、九珠心算、快乐识字、创意绘画、少儿舞蹈、幼儿礼仪 开设班级：小班、中班、大班、学前班 招生对象：2.5周岁--6周岁  ​ 地址：柳新镇孙庄村  电话：18852196642</marquee></div>
<header>
	<img src="${app}/sysmgr/file/downloadFile.do?attachmentId=289471d5-b51a-4589-afc7-6a11ea79cf63" alt="shareImg" style="width:100%;" />
	<div class="m_head clearfix">
		<div class="num_box">
			<a href="${app}/weixin/vote/addItem.shtml?id=${info.id}&accountId=${info.account_id}" class="join_us">我要报名</a>
			[#include "/weixin/vote/include/voteTop.html" /]
		</div>
		<div class="search">
			<form action="${app}/weixin/vote/index.shtml" id="search_form" method="post">
				<input type="hidden" id="accountId" name="accountId" value="${info.account_id}">
				<input type="hidden" id="id" name="id" value="${info.id}">
				<div class="search_con">
					<div class="btn"><input type="submit" name="seachid" id="searchBtn" value="搜索"></div>
					<div class="text_box"><input type="search" id="searchText" value="${RequestParameters['keyword']}" name="keyword" placeholder="请输入选手姓名或编号" autocomplete="off"></div>
				</div>
			</form>
		</div>
	</div>
</header>
<section class="content">
	<div class="text_a clearfix">
		<a href="${app}/weixin/vote/index.shtml?id=${info.id}&accountId=${info.account_id}&flag=zxcs" class="${(RequestParameters['flag']=='zxcs')?string('active','')}">最新参赛</a>
		<!--<a href="" style="background:#f04a52">领取红包</a>-->
	</div>
	<div class="blank20"></div>
	<input type="hidden" id="page" name="page" value="1" />
	<div id="pageCon" class="match_page masonry" style="padding-bottom: 15px;">
		<ul class="list_box masonry clearfix" style="position: relative;">

		</ul>
		<div id="weui-loadmore" class="weui-loadmore">
			<i class="weui-loading"></i>
			<span class="weui-loadmore__tips">正在加载</span>
		</div>
		<div id="weui-loadmore2" class="weui-loadmore weui-loadmore_line">
			<span class="weui-loadmore__tips">查看更多</span>
		</div>
	</div>
</section>
<img class="bg" src="${app}/static/weixin/vote/index${info.moban}/mw_005.jpg" />
[#include "/weixin/vote/include/voteRule.html" /]
[#include "/weixin/vote/include/voteFooter2.html" /]
</body>
<script type="text/javascript" src="${app}/static/plugins/lazyload/jquery.lazyload.min.js"></script>
<script type="text/javascript" src="${app}/static/plugins/masonry/jquery.masonry.min.js"></script>
<script type="text/javascript">
	var loading = false;
	$.showLoading();
	$(function(){
		getItemList();
		$("#weui-loadmore2 span").bind('click', getItemList);
	});
	function getItemList() {
		if(loading) return;
		loading = true;
		$("#weui-loadmore").show();
		common.ajax('${app}/weixin/vote/getItems.shtml', "id=${info.id}&accountId=${info.account_id}&myzps=${info.myzps}&page=" + $('#page').val(), 'POST', 'JSON',
				true, function (result) {
					$("#weui-loadmore").hide();
					if (result.nextPage == 0) {
						$("#weui-loadmore2 span").html('暂无数据');
						$("#weui-loadmore2 span").unbind('click');
					}
					$('#page').val(result.nextPage);
					var list = result.list;
					for (var i = 0; i < list.length; i++) {
						content = '<li class="picCon"><div>'
								+ '<i class="number">'+list[i]['item_no']+'号，'+list[i]['vcount']+'票</i>'
								+ '<a href="${app}/weixin/vote/itemInfo.shtml?id=${info.id}&accountId=${info.account_id}&itemId='+list[i]['id']+'" class="img">'
								+ '<img src="${app}/nivo-slider/images/loading.gif" data-original="${imgSite}'+list[i]['picurl1']+'" alt="'+list[i]['intro']+'" />'
								+ '</a><div class="clearfix"><p>'+list[i]['item_name']+'</p>'
								+ '<a href="javascript:;" class="vote" data-item-id="'+list[i]['id']+'" data-item-no="'+list[i]['item_no']+'" data-id="${info.id}" data-account-id="${info.account_id}">投票</a>'
								+ '</div></div></li>';
						$(".list_box").append(content);
					}
					loading = false;
					$.hideLoading();

					$(".picCon img").lazyload({
						effect : 'fadeIn',
						load:function(){
							var container = $('#pageCon ul');
							container.masonry('reload');
							container.imagesLoaded(function(){
								container.masonry({
									itemSelector: '.picCon'
								});
							});
						}
					});

					$(".vote").on('click', function(){
						common.ajax('${app}/weixin/vote/itemTicket.shtml', $(this).data(), 'POST', 'JSON',
								true, function(result){
									$.modal({
										title: "系统提醒",
										text: result.msg,
										buttons: [
											{
												text: "确定",
												onClick: function(){
													if (result.result == 1) {
														window.location.href = '${app}/weixin/vote/index.shtml?id=${info.id}&accountId=${info.account_id}';
													}
												}
											}
										]
									});
								});
					});
				});
	}

</script>
</html>